
<%@page import="com.general.genericUtils.BuildExceptionTrace"%>
<%@page import="com.serviceBeans.AlliBilliForum"%>
<%@page import="com.spring.BusinessComponents.DoTransaction"%><%@page import="org.springframework.context.support.ClassPathXmlApplicationContext"%>

<%@page import="java.util.List"%><% System.out.println("JSP - forumLoadService");
ClassPathXmlApplicationContext ctx = (ClassPathXmlApplicationContext)getServletContext().getAttribute("ctx");
DoTransaction doTransaction = (DoTransaction)ctx.getBean("doTransaction");
		try{
			AlliBilliForum forum = new AlliBilliForum();
			List l = doTransaction.loadForumData(0);
			System.out.println(l.size());
			request.setAttribute("forumList", l);
			getServletContext().getRequestDispatcher("/WEB-INF/jsp/buildXML4ForumService.jsp").forward(request, response);
		}
		catch (Exception e) {
			doTransaction.saveException(BuildExceptionTrace.buildAndGiveExceptionTrace(e));
			
		}
		
		%>